From: Greg Kroah-Hartman Date: Thu, 21 Oct 2010 16:09:48 +0000 (-0700) Subject: Staging: hv: netvsc: call vmbus_receivepacket_raw directly X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~16303^2~3^2~27 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9f630068e8ccba24d728f196cb3ddc120ebee38e;p=linux-4.9.git Staging: hv: netvsc: call vmbus_receivepacket_raw directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 1c15f9a1a12b..db340135d63f 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -1261,9 +1261,8 @@ static void NetVscOnChannelCallback(void *Context) } do { - ret = device->Driver->VmbusChannelInterface.RecvPacketRaw( - device, buffer, bufferlen, - &bytesRecvd, &requestId); + ret = vmbus_recvpacket_raw(device->channel, buffer, bufferlen, + &bytesRecvd, &requestId); if (ret == 0) { if (bytesRecvd > 0) { DPRINT_DBG(NETVSC, "receive %d bytes, tid %llx",